11. Debugging

Debugging

Debugging is an important part of software development! Therefore, learning how to use a debugger is an important part of becoming a software developer 😬

Debuggers

Debuggers are tools that allow you to pause the execution of your code in various locations, inspect the state of the program, and step through your code line-by-line.

GDB and LLDB are two popular, open-source debuggers for C++. Integrating them into a code editor often makes debugging easier.

Visual Studio Code Debugging

In order to use Visual Studio Code's debugger with C++ files, you must install the free C/C++ extension.

Visual Studio Code Debug